// 封装下载文件的Promise函数
export const downloadFile = (options) => {
  return new Promise((resolve, reject) => {
    wx.downloadFile({
      ...options,
      success: (res) => resolve(res),
      fail: (err) => reject(err)
    });
  });
};